package com.jsh.erp.api;

import com.jsh.erp.service.orgaUserRel.OrgaUserRelService;
import lombok.SneakyThrows;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/orgaUserRelApi")
public class OrgaUserRelApi {

    @Resource
    private OrgaUserRelService orgaUserRelService;

    @SneakyThrows
    @PostMapping(value = "/getUserIdListByUserId")
    String getUserIdListByUserId(Long userId){
        return orgaUserRelService.getUserIdListByUserId(userId);
    }
}
